package com.study.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * Cat class
 *
 * 等价于 <bean id="user" class="com.study.pojo.User"></bean>
 * @author chenyeqing
 * @date 2020/12/28
 */
@Component
@Scope
public class User {

    @Value("李四")
    private String name;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                '}';
    }

}
